package service.inventory.impl;

import dao.inventory.ItemStokDao;
import model.inventory.ItemStok;
import model.inventory.ItemStokId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.inventory.ItemStokService;

@Service("itemStokService")
@Transactional(readOnly=true)
public class ItemStokServiceImpl implements ItemStokService {

    @Autowired private ItemStokDao itemStokDao;
    
    @Override
    public boolean save(ItemStok itemStok) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean delete(ItemStok itemStok) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ItemStok get(int itemId, int gudangId) {
        ItemStokId id = new ItemStokId(itemId, gudangId);
        return itemStokDao.get(id);
    }
    
}
